package edu.gdkm.dao;

import edu.gdkm.pojo.Student;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IStudentDao {
    @Select("select * from tab_student where sid=#{id}")
    public Student queryStudentById(Integer id);
    @Select("select * from tab_student where cid=#{cid}")
    public List<Student> queryStudentByCid(Integer cid);  //用于通过外键实现列表查询，其结果即用于配置Classes中的studentList属性
}